import axios from './axios'
import resfulParamsToUrl from './resfulParamsToUrl'

//订单信息管理
//分页查询订单信息
export const getPageList = params => {
	axios.prototype._loading_ = false
	return axios.post(
		resfulParamsToUrl('/sys/auth/tCardTradeOrder/pageList', params),
		params,
	)
}

//分页查询充值详情
export const rechargePageList = params => {
	axios.prototype._loading_ = false
	return axios.post(
		resfulParamsToUrl('/sys/auth/tCardTradeOrder/recharge', params),
		params,
	)
}

//分页查询退费详情
export const refundPageList = params => {
	axios.prototype._loading_ = false
	return axios.post(
		resfulParamsToUrl('/sys/auth/tCardTradeOrder/refund', params),
		params,
	)
}
